package pl.edu.agh.io.fx3.treecreator.disk;

/**
 * Support class for storing information about amount of files and directories
 * contained by concrete folder.
 * 
 * @author Jaroslaw Janik
 */
public class DirectoryInfo {
	
	private int filesNumber;
	private int dirsNumber;
	
	/**
	 * Constructor which gets two things: number of files and directories in given folder.
	 * 
	 * @param filesNumber A files count.
	 * @param dirsNumber A directories count.
	 */
	public DirectoryInfo(int filesNumber, int dirsNumber) {
		this.filesNumber = filesNumber;
		this.dirsNumber = dirsNumber;
	}

	/**
	 * Getter for directories count.
	 * 
	 * @return A directories count.
	 */
	public int getDirsNumber() {
		return dirsNumber;
	}
	
	/**
	 * Getter for files count.
	 * 
	 * @return A files count.
	 */
	public int getFilesNumber() {
		return filesNumber;
	}

	/**
	 * Setter for directories count.
	 * 
	 * @param dirsNumber A directories count.
	 */
	public void setDirsNumber(int dirsNumber) {
		this.dirsNumber = dirsNumber;
	}

	/**
	 * Setter for files count.
	 * 
	 * @param filesNumber A files count.
	 */
	public void setFilesNumber(int filesNumber) {
		this.filesNumber = filesNumber;
	}
}
